<div class="wide form">

    <?php
    $form = $this->beginWidget('CActiveForm', array(
                'action' => Yii::app()->createUrl($this->route),
                'method' => 'get',
                'htmlOptions' => array('class' => 'search')
            ));
    ?>

    <p>
<?php echo $form->label($model, 'id'); ?>
<?php echo $form->textField($model, 'id'); ?>
    </p>

    <p>
<?php echo $form->label($model, 'nombre'); ?>
<?php echo $form->textField($model, 'nombre', array('size' => 25, 'maxlength' => 25)); ?>
    </p>

    <p>
        <?php echo $form->label($model, 'vigencia'); ?>
        <?php
        $this->widget('zii.widgets.jui.CJuiDatePicker', array(
            'name' => 'Producto[vigencia]',
            'model' => $model,
            'attribute' => 'vigencia',
            'language' => 'es',
            // additional javascript options for the date picker plugin
            'options' => array(
                'showAnim' => 'fold',
            ),
            'htmlOptions' => array(
                //'class' => 'text date_picker'
                'size' => 10
            ),
        ));
        ?>
    </p>

    <p>
<?php echo $form->label($model, 'precio'); ?>
        <?php echo $form->textField($model, 'precio'); ?>
    </p>

    <p>
        <?php echo $form->label($model, 'categoria_id'); ?>
        <?php
        $seleccione = array(null => "Seleccione un campo");
        $categorias = Chtml::listData(Categoria::model()->findAll(), "id", "nombre");
        echo $form->dropDownList($model, "categoria_id", $seleccione + $categorias);
        ?>
    </p>

    <p>
<?php echo CHtml::submitButton('Buscar', array('class' => 'submit tiny')); ?>
        </p>

<?php $this->endWidget(); ?>

</div><!-- search-form -->